package com.atguigu.boot.admin.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @author : leimingchao
 * @date Date : 2021年11月20日 20:33
 */
// @WebServlet(urlPatterns = "/my")
public class MyServlet extends HttpServlet {

    @Override
    public void init() throws ServletException {
        System.out.println("MyServlet初始化");
    }

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
        resp.getWriter().write("6666");
    }
}
